#include "linkList.hpp"
#include "tools.hpp"
#include <iostream>


template<class T>
void print(const lxj::LinkList<T>& ll, char c = '\n')
{
    auto cur = ll.head();
    while (cur->_right != nullptr) {
        std::cout << cur->_value << ", ";
        cur = cur->_right;
    }
    std::cout << cur->_value << c;
}

int main()
{
    lxj::Time time;

    lxj::LinkList<int> ll_1({1, 2, 3});
    lxj::LinkList<int> ll_2({3, 2, 1});

    ll_2.partitionLinkList(4);
    print(ll_2);
    return 0;
}